1 /***
2 * DummyEdge
3 *
4 * This is a dummy edge which is added to a graph for
5 * helpful purposes.
6 */
7
8 package junit.quilt.cover.generic;
9
10 import junit.quilt.exception.InvalidTransitionException;
11
12 import org.apache.commons.graph.Edge;
13
14 import org.apache.bcel.generic.*;
15
16 public class DummyEdge
17 extends FlowControlEdge
18 {
19 public DummyEdge(BlockVertex source,
20 BlockVertex target)
21 {
22 super( 10000, source, target );
23 }
24
25 public void connect(MethodGen method,
26 InstructionList il,
27 InstructionHandle source,
28 InstructionHandle target)
29 throws InvalidTransitionException
30 {
31 }
32
33 public FlowControlEdge copy( BlockVertex source, BlockVertex target ) {
34 return new DummyEdge( source, target );
35 }
36
37 public String toString() {
38 return "[D: " + getSource() + " -> " + getTarget() + "]";
39 }
40 }
41
42
43
44
This page was automatically generated by Maven